/*
 *
 */

#ifndef GKT_AMBIENT_LIGHT_H
#define GKT_AMBIENT_LIGHT_H

#include "gkt_types.h"

#ifdef __cplusplus
extern "C" {
#endif

#if defined(GKT_CONFIG_AMBIENT_LIGHT_ENABLE) \
	&& GKT_CONFIG_AMBIENT_LIGHT_ENABLE
#define GKT_AMBIENT_LIGHT_ENABLE	1

void gkt_ambient_light_set_state(uint32_t state, 
		uint32_t half_cycle_time_ms, uint32_t loops);

void gkt_ambient_light_init(void);
int gkt_ambient_light_standby(void);
#elif defined(GKT_CONFIG_AMBIENT_LIGHT_META_2_GPIO_PIN)
void gkt_ambient_light_init(void);
int gkt_ambient_light_standby(void);
#else
#define GKT_AMBIENT_LIGHT_ENABLE	0

#define gkt_ambient_light_set_state(state, \
			half_cycle_time_ms, loops)	do {} while (0)

#define gkt_ambient_light_init()	do {} while (0)
#endif

#define GKT_AMBIENT_LIGHT_STATE_OFF	0

#ifdef __cplusplus
}
#endif

#endif	/* GKT_AMBIENT_LIGHT_H */
